<script setup lang="ts">
// import HelloWorld from './components/HelloWorld.vue'
import variables from "@/styles/variables.module.scss";
import { useCounterStore } from "@/store/modules/counter";
const store = useCounterStore();
console.log("%c [ store ]-6", "font-size:13px; background:pink; color:#bf2c9f;", store);

const handleAdd = () => {
  store.increment();
};

// import.meta.env.VITE_APP_API_URL

console.log("variables-->", variables);
</script>

<template>
  <div>
    <a href="https://vitejs.dev" target="_blank">
      <img src="/vite.svg" class="logo" alt="Vite logo" />
    </a>
    <a href="https://vuejs.org/" target="_blank">
      <img src="./assets/vue.svg" class="logo vue" alt="Vue logo" />
    </a>
  </div>

  <div class="text text-primary text-red">你好，世界{{ variables.bgColor }},世界如此美妙</div>

  <div>store==> {{ store.count }} --- {{ store.double }}</div>

  <div>
    <el-button type="success" @click="handleAdd"><i-ep-SuccessFilled />store+</el-button>
    <el-button type="info"><i-ep-InfoFilled />Info</el-button>
    <el-button type="warning"><i-ep-WarningFilled />Warning</el-button>
    <el-button type="danger" v-hasPerm="['add']"><i-ep-WarnTriangleFilled />Danger</el-button>
    <el-button type="info"><svg-icon icon-class="api" />SVG 本地图标</el-button>
  </div>

  <HelloWorld msg="Vite + Vue" />
</template>

<style scoped lang="scss">
.logo {
  height: 6em;
  padding: 1.5em;
  transition: filter 300ms;
  will-change: filter;
}

.logo:hover {
  filter: drop-shadow(0 0 2em #646cffaa);
}

.logo.vue:hover {
  filter: drop-shadow(0 0 2em #42b883aa);
}

.text {
  color: $--primary-color;
}
</style>
